<template>
 <div class="app-container">
    <daohang v-if="foot"></daohang>
    <router-view></router-view>
 </div>
</template>
<script>
import daohang from './components/daohang'
export default {
    data() {
        return {
            foot:true
        }
    },
    components:{
        "daohang":daohang
    },
    watch: {
        $route(to,from){
            if(to.path=="/benzhou"||to.path=="/login"||to.path=="/reg"||to.path=="/carou"){
                this.foot=false;
            }else{
                this.foot=true;
            }
        }
    },
}
</script>
<style>
    daohang{
        z-index:10000;
    }
</style>
